package top.yzlin.dblock.inter;

import java.sql.SQLException;
import java.sql.Statement;
import java.util.Map;

public interface StatementOperateEvent {

    void operate(Map<String, Statement> connectionMap) throws Exception;


    default void operateException(Exception e) {
        e.printStackTrace();
    }

    default void rollBackException(Exception e1, SQLException e2) {
        e1.printStackTrace();
        e2.printStackTrace();
    }

}
